<?php 
$calendarAutoIncreaseNumber = 1;
function generateAutoIncreaseNumber()
{
    global $calendarAutoIncreaseNumber;    
    if(!$calendarAutoIncreaseNumber){
        $calendarAutoIncreaseNumber = 1;
    }
    return $calendarAutoIncreaseNumber++;
}
?>
<div id="container" <?php if($view->settings['number_of_days'] != 10){ ?> style="width: 550px;margin: 0 auto;"<?php } ?>>    
    <ul>
        <?php if($view->settings['number_of_days'] == 10){ ?>
            <li>
                <a href="javascript:webjs.showQuestionBox(22);">
                <span><?php echo generateAutoIncreaseNumber(); ?></span>
                </a>
            </li>
            <li onclick="webjs.showQuestionBox(23);">
                <a href="javascript:webjs.showQuestionBox(22);">
                <span><?php echo generateAutoIncreaseNumber(); ?></span>
                </a>
            </li>
            <li onclick="webjs.showQuestionBox(24);">
                <a href="javascript:webjs.showQuestionBox(22);">
                <span><?php echo generateAutoIncreaseNumber(); ?></span>
                </a>
            </li>
        <?php } ?>
        <li onclick="webjs.showQuestionBox(25);">
            <a href="javascript:webjs.showQuestionBox(22);">
            <span><?php echo generateAutoIncreaseNumber(); ?></span>
            </a>
        </li>
        <li onclick="webjs.showQuestionBox(26);">
            <a href="javascript:webjs.showQuestionBox(22);">
            <span><?php echo generateAutoIncreaseNumber(); ?></span>
            </a>
        </li>
        <li onclick="webjs.showQuestionBox(27);">
            <a href="javascript:webjs.showQuestionBox(22);">
            <span><?php echo generateAutoIncreaseNumber(); ?></span>
            </a>
        </li>
        <li onclick="webjs.showQuestionBox(28);">
            <a href="javascript:webjs.showQuestionBox(22);">
            <span><?php echo generateAutoIncreaseNumber(); ?></span>
            </a>
        </li>
        <li onclick="webjs.showQuestionBox(29);">
            <a href="javascript:webjs.showQuestionBox(22);">
            <span><?php echo generateAutoIncreaseNumber(); ?></span>
            </a>
        </li>
        <li onclick="webjs.showQuestionBox(30);">
            <a href="javascript:webjs.showQuestionBox(22);">
            <span><?php echo generateAutoIncreaseNumber(); ?></span>
            </a>
        </li>
        <li onclick="webjs.showQuestionBox(31);">
            <a href="javascript:webjs.showQuestionBox(22);">
            <span><?php echo generateAutoIncreaseNumber(); ?></span>
            </a>
        </li>
    </ul>
</div>